package work.shyk.cdp;

import java.util.List;

public class OrganiseModel {
	private String id;
	private String text;
	private String open;
	private List<OrganiseModel> children;

	public String getId() {
		return id;
	}
	public void setId(String id) {
		this.id = id;
	}
	public String getText() {
		return text;
	}
	public void setText(String text) {
		this.text = text;
	}
	public String getOpen() {
		return open;
	}
	public void setOpen(String open) {
		this.open = open;
	}
	public List<OrganiseModel> getChildren() {
		return children;
	}
	public void setChildren(List<OrganiseModel> children) {
		this.children = children;
	}


    @Override
    public String toString() {
        final StringBuilder sb = new StringBuilder("{");
        sb.append("\"id\":\"")
                .append(id).append('\"');
        sb.append(",\"text\":\"")
                .append(text).append('\"');
        sb.append(",\"open\":\"")
                .append(open).append('\"');
        sb.append(",\"children\":")
                .append(children);
        sb.append('}');
        return sb.toString();
    }
}
